package com.ossjk.qlh.order.vo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ossjk.core.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;
import java.util.Objects;

/**
 * 接单打印
 *
 * @author liuxi
 * @since 2020-08-14
 */
@ApiModel(value = "接单打印")
public class JdOrderVo extends BaseEntity<JdOrderVo> {

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id")
    @TableField("oid")
    private String oid;

    /**
     * 多个套餐组
     */
    @ApiModelProperty(value = "多个套餐组")
    private List<TcList> selectTc;


    //    /**
//     * 企业id
//     */
//    @ApiModelProperty(value = "企业id")
//    @TableField("eid")
//    private String eid;
//
//    public String getEid() {
//        return eid;
//    }
//
//    public void setEid(String eid) {
//        this.eid = eid;
//    }

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @TableField("rname")
    private String rname;

    /**
     * 工号
     */
    @ApiModelProperty(value = "工号")
    @TableField("mnum")
    private String mnum;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;

    /**
     * 子地址
     */
    @ApiModelProperty(value = "子地址")
    @TableField("eaddrs")
    private String eaddrs;

    /**
     * 套餐名称
     */
    @ApiModelProperty(value = "套餐名称")
    @TableField("namels")
    private String namels;

    /**
     * 套餐详情
     */
    @ApiModelProperty(value = "套餐详情")
    @TableField("fnames")
    private String fnames;

    /**
     * 下单时间
     */
    @ApiModelProperty(value = "下单时间")
    @TableField("xdtm")
    private String xdtm;

    /**
     * 接单时间
     */
    @ApiModelProperty(value = "接单时间")
    @TableField("jdtm")
    private String jdtm;

    /**
     * 定价
     */
    @ApiModelProperty(value = "定价")
    @TableField("cost")
    private String cost;

    /**
     * 配送费
     */
    @ApiModelProperty(value = "配送费")
    @TableField("sendact")
    private String sendact;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField("state")
    private String state;


    public List<TcList> getSelectTc() {
        return selectTc;
    }

    public void setSelectTc(List<TcList> selectTc) {
        this.selectTc = selectTc;
    }

    public String getSendact() {
        return sendact;
    }

    public void setSendact(String sendact) {
        this.sendact = sendact;
    }

    public void setFnames(String fnames) {
        this.fnames = fnames;
    }

    public String getFnames() {

        return fnames;
    }


    public String getNamels() {
        return namels;
    }

    public void setNamels(String namels) {
        this.namels = namels;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public String getMnum() {
        return mnum;
    }

    public void setMnum(String mnum) {
        this.mnum = mnum;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEaddrs() {
        return eaddrs;
    }

    public void setEaddrs(String eaddrs) {
        this.eaddrs = eaddrs;
    }


    public String getXdtm() {
        return xdtm;
    }

    public void setXdtm(String xdtm) {
        this.xdtm = xdtm;
    }

    public String getJdtm() {
        return jdtm;
    }

    public void setJdtm(String jdtm) {
        this.jdtm = jdtm;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof JdOrderVo) {
            JdOrderVo user = (JdOrderVo) obj;
            return (mnum.equals(user.mnum));
        }
        return super.equals(obj);
    }

    public int hashCode() {
        return mnum.hashCode();
    }



    @Override
    public String toString() {
        return "{" +
                "oid='" + oid + '\'' +
                ", selectTc=" + selectTc +
                ", rname='" + rname + '\'' +
                ", mnum='" + mnum + '\'' +
                ", phone='" + phone + '\'' +
                ", eaddrs='" + eaddrs + '\'' +
//                ", namels='" + namels + '\'' +
//                ", fnames='" + fnames + '\'' +
                ", xdtm='" + xdtm + '\'' +
                ", jdtm='" + jdtm + '\'' +
                ", cost='" + cost + '\'' +
                ", sendact='" + sendact + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
